<?php
/**
 * Created by PhpStorm.
 * User: Test
 * Date: 2017/5/4
 * Time: 11:23
 */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
    ?>
<?php $form = ActiveForm::begin(); ?>

<?= $form->field($model, 'name') ?>
<?= $form->field($model, 'email') ?>
<?= $form->field($model, 'sex')?>


    <div class="form-group">
        <?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
    </div>

<?php ActiveForm::end(); ?>